<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@page import="entity.Article"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Insert title here</title>
</head>
<body>

<%
  Article article = new Article();
  pageContext.setAttribute("article", article);
%>
<jsp:useBean id="article_p" class="entity.Article" scope="page"></jsp:useBean>

<jsp:useBean id="article_r" class="entity.Article" scope="request"></jsp:useBean>

<jsp:useBean id="article_s" class="entity.Article" scope="session"></jsp:useBean>

<jsp:useBean id="article_a" class="entity.Article" scope="application"></jsp:useBean>

<%
//article.setContent("content");
//article_p.setContent("content-p");
//article_r.setContent("content-r");
//article_s.setContent("content-s");
//article_a.setContent("content-a");

%>

<jsp:setProperty property="content" name="article_p" value="content-p"/>
<jsp:setProperty property="content" name="article_r" value="content-r"/>
<jsp:setProperty property="content" name="article_s" value="content-s"/>
<jsp:setProperty property="content" name="article_a" param="content" />
<jsp:setProperty property="*" name="article_a" />

<%=article_p.getContent() %> 

<jsp:getProperty property="content" name="article_p" />

<%

//request.getRequestDispatcher("to.jsp").forward(request, response);

//response.sendRedirect("to.jsp");

//pageContext.forward("to.jsp");
%>

<jsp:forward page="to.jsp" >
	<jsp:param value="tom" name="username" />
</jsp:forward>
</body>
</html>